package com.dongdongqiang.domain.blog;

import com.dongdongqiang.common.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;
import java.math.BigDecimal;


/**
* DdqBlog 实体类
* by ZZB 2017-09-15 22:20:04
*/
@Table(name = "ddq_blog")
public class DdqBlog extends BaseEntity {
    @Column(name = "title")
    private String title;
    @Column(name = "category_id")
    private String categoryId;
    @Column(name = "summary")
    private String summary;
    @Column(name = "cover_image_id")
    private String coverImageId;

    /*----------------------get set 方法----------------------*/
    public String getTitle() {return title;}
    public void setTitle(String title){this.title = title == null ? null : title.trim();}
    public String getCategoryId() {return categoryId;}
    public void setCategoryId(String categoryId){this.categoryId = categoryId == null ? null : categoryId.trim();}
    public String getSummary() {return summary;}
    public void setSummary(String summary){this.summary = summary == null ? null : summary.trim();}
    public String getCoverImageId() {return coverImageId;}
    public void setCoverImageId(String coverImageId){this.coverImageId = coverImageId == null ? null : coverImageId.trim();}
    /*----------------------toString 方法----------------------*/
    @Override
    public String toString() {
        return "DdqBlog{" +
        "id='" + getId() + '\'' + ',' + 
        "title='" + getTitle() + '\'' + ',' + 
        "categoryId='" + getCategoryId() + '\'' + ',' + 
        "summary='" + getSummary() + '\'' + ',' + 
        "coverImageId='" + getCoverImageId() + '\'' + ',' + 
        "creator='" + getCreator() + '\'' + ',' + 
        "createTime='" + getCreateTime() + '\'' + ',' + 
        "updater='" + getUpdater() + '\'' + ',' + 
        "updateTime='" + getUpdateTime() + '\'' + ',' + 
        "activate='" + getActivate() + '\'' + 
        '}';
    }
}
